﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace TrainingWorkshop.Models
{
    /// <summary>
    /// Teacher Object
    /// </summary>
    [DataContract(Name = "Teacher")]
    public class Teacher
    {
        private int _TeacherId;
        private string _TeacherName;
        private string _TeacherGender;
        private int _DepartmentId;

        /// <summary>
        /// Primary Key of Teacher
        /// </summary>
        [DataMember(Name = "TeacherId")]
        public int TeacherId
        {
            get { return _TeacherId; }
            set { _TeacherId = value; }
        }
        /// <summary>
        /// Name of Teacher
        /// </summary>
        [DataMember(Name = "TeacherName")]
        public string TeacherName
        {
            get { return _TeacherName; }
            set { _TeacherName = value; }
        }
        /// <summary>
        /// Gender of Teacher
        /// </summary>
        [DataMember(Name = "TeacherGender")]
        public string TeacherGender
        {
            get { return _TeacherGender; }
            set { _TeacherGender = value; }
        }
        /// <summary>
        /// Foreignkey:DepartmentId the key of Department
        /// </summary>
        [DataMember(Name = "DepartmentId")]
        public int DepartmentId
        {
            get { return _DepartmentId; }
            set { _DepartmentId = value; }
        }
    }
}
